'use strict';
const Gshq = require('./gshq');
const Zjlx = require('./zjlx');
const Market = require('./market');
const Kzz = require('./kzz');
const Etf = require('./Etf');

class Fund {
  constructor(requestReptile) {
    const gshq = new Gshq(requestReptile);
    // 全球股市
    this.qqgs = gshq.qqgs.bind(gshq);
    // 港股行情
    this.gggs = gshq.gggs.bind(gshq);
    // a股行情
    this.ags = gshq.ags.bind(gshq);
    // 期指情况
    this.gzgs = gshq.gzgs.bind(gshq);

    const zjlx = new Zjlx(requestReptile);
    // 主力动向
    this.zlzjlx = zjlx.zlzjlx.bind(zjlx);
    // 北向资金
    this.bxzj = zjlx.bxzj.bind(zjlx);

    // 市场量能
    const market = new Market(requestReptile);
    // 市场量能
    this.scln = market.scln.bind(market);
    // 涨跌统计
    this.zdfb = market.zdfb.bind(market);

    // 可转债
    const kzz = new Kzz(requestReptile);
    // 可转债打新介绍
    this.getNewKzz = kzz.getNewKzz.bind(kzz);

    const etf = new Etf(requestReptile);
    this.eftList = etf.eftList.bind(etf);
  }
}

module.exports = Fund;
